#pragma once

#include <assert.h>
#include "colorDef.h"
#include "DirectInput.h"
class cQuadVertexObj
{

public:
	cQuadVertexObj(void);
	~cQuadVertexObj(void);

	void Init( LPDIRECT3DTEXTURE9 tex, FLOAT x, FLOAT y, FLOAT w, FLOAT h );
	void SetScale( FLOAT scale) { mScale = scale; }
	void Release();
	void PreRender();
	void PostRender();
	void Draw( FLOAT x, FLOAT y, FLOAT z );

private:
	LPDIRECT3DTEXTURE9				mpTexture;
	LPDIRECT3DVERTEXBUFFER9 	mQuadVB;
	D3DXVECTOR3								mRotation;
	DWORD												mOldCullMode;
	float														mScale;
};
